import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.LinkedList;


public class AdherentsDao {

	//private Adherent [] adherentDB;
	
	static Adherent [] listeAdherentDB  = {
		new Adherent ("Dupont","Patrick","sonMdp","dPatrick","0160000000"),
		new Adherent ("Michael","Jordan","hehe","MJordan","069405320"),
		new Adherent ("Zian","SupaCrew","hihi","HMan","07605080020")
	};
	
	
		
	public static Adherent findByKey(int id){
		
		for(Adherent j  : AdherentsDao.listeAdherentDB)	
			
			if(j.getIdUtilisateur() == id) 	return j;
			
			return null;
	}	


	
	
	
	
//	public Adherent getAdherentDB() {
//		return adherentDB;
//	}
//
//	public void setAdherentDB(Adherent adherentDB) {
//		this.adherentDB = adherentDB;
//	}
	
	
	
	
}
